package com.google.code.ardurct.lcd_pcd8544.examples;

import com.google.code.ardurct.lcd_pcd8544.LCDTest;

public class Tests extends LCDTest {
	
	private int header[] = { 
			0x5F, 0x45, 0x5B, 0x40, 0x54, 0x48, 0x54, 0x40, 0x40, 0x50, 0x50, 0x50, 0x58, 0x58, 0x58, 0x5C, 
			0x5C, 0x5C, 0x5E, 0x5E, 0x5E, 0x5F, 0x5F, 0x5F, 0x40, 0x40, 0x40, 0x7F, 0x40, 0x40, 0x5F, 0x45, 0x5B,
			0x40, 0x5F, 0x55, 0x51, 0x40, 0x5F, 0x42, 0x5F, 0x40, 0x40, 0x5F, 0x51, 0x51, 0x51, 0x51,
			0x51, 0x51, 0x51, 0x51, 0x51, 0x51, 0x51, 0x51, 0x51, 0x51, 0x51, 0x51, 0x51, 0x51, 0x51, 0x51,
			0x51, 0x51, 0x51, 0x51, 0x51, 0x51, 0x51, 0x51, 0x51, 0x51, 0x51, 0x51, 0x51, 0x51, 0x51, 0x51,
			0x51, 0x5F, 0x4E, 0x4E };
	
	public void setup() {
		lcdT.begin();
		lcdT.drawBitmap(header, 0, 0, 84, 8);
		lcdT.setCursor(0, 2);
		lcdT.print("Ya");
		lcdT.setCursor(0, 3);
		lcdT.print("Th");
		lcdT.setCursor(0, 5);
		lcdT.print("Au");
		lcdT.drawProgressBar(2, 2, 12, 50, false);
		lcdT.drawProgressBar(2, 3, 12, 80, true);
		lcdT.drawToggleSwitch(2,5, 12, 4, 1);
		
		lcdG.begin();
		lcdG.setCursor(0, 0);
		lcdG.print("Hello world");
		lcdG.drawSmallFontText("Hello world", 0, 10);
		lcdG.setCursor(7, 3);
		lcdG.print("8:20:35");
		lcdG.drawMediumFontTime(8, 20, 35, 50, 33);
		lcdG.drawSmallFontText("8:20:35", 56, 42);
		lcdG.drawEllipse(10, 30, 9, 8, true);
		lcdG.drawLine(10, 30, 20, 48, true, 2);
		lcdG.fillRectangle(23, 20, 28, 28, true);
		lcdG.updateDisplay();
	}
	
	public void loop() {
	}
}
